package com.feicheng.controller.shop.admin.client;


import com.feicheng.common.result.ResultInfo;
import com.feicheng.persistence.entity.VoucherType;
import com.feicheng.service.IFClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author cailongyang
 * @since 2021-12-02
 */
@RestController("/shop/admin/client/voucher-type")
@RequestMapping("/shop/admin/client/voucher-type")
public class VoucherTypeController {
    @Autowired
    IFClientService fClientService;
    @GetMapping("/all")
    public ResultInfo allVouchersType(){
        return fClientService.getVouchers(new VoucherType());
    }
}
